#ifndef LOGGER_H
#define LOGGER_H

#include <QApplication>
#include <stdio.h>
#include <stdlib.h>
#include <QCoreApplication>
#include <QSettings>
#include <QDebug>
#include <QTime>
#include <QDateTime>
#include <QDir>

#define _TIME_ qPrintable(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss ddd"))

static FILE *q_fileStream = NULL;
static int   g_logLevel   = 0;

enum TraceLevel
{
    TL_NULL = 0,
    TL_CRIT,
    TL_ERRO,
    TL_WARN,
    TL_INFO
};

static const int g_TraceLevel [] = { TL_INFO, TL_WARN, TL_ERRO, TL_CRIT, TL_NULL };

void logger_init();



#endif // LOGGER_H

